package com.itpan.common;

/**
 * 基于ThreadLoca包装的工具类：
 *
 */
public class BaseContext {
    private static ThreadLocal<String> threadLocal=new ThreadLocal<>();


    /**
     * 设置值
     * @param Id
     */
    public static void setCurrentId(String Id){
        threadLocal.set(Id);
    }

    /**
     * 获取值
     * @return
     */

    public static String getCurrentId(){
        return threadLocal.get();
    }
}
